.process-designer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;

  .el-header {
    padding: 0px 10px;
  }
}

.process-designer__header {
  width: 100%;
  min-height: 40px;
  line-height: 40px;
  text-align: left;

  border-left: 1px solid #EFEFEF;
  border-right: 1px solid #EFEFEF;

  .el-button {
    text-align: center;
  }

  .el-button-group {
    margin: 3px;
  }

  .el-tooltip__popper {
    .el-button {
      width: 100%;
      text-align: left;
      padding-left: 8px;
      padding-right: 8px;
    }

    .el-button:hover {
      background: rgba(64, 158, 255, 0.8);
      color: #ffffff;
    }
  }

  .align {
    position: relative;

    i {
      &:after {
        content: "|";
        position: absolute;
        transform: rotate(90deg) translate(200%, 60%);
      }
    }
  }

  .align.align-left i {
    transform: rotate(90deg);
  }

  .align.align-right i {
    transform: rotate(-90deg);
  }

  .align.align-top i {
    transform: rotate(180deg);
  }

  .align.align-bottom i {
    transform: rotate(0deg);
  }

  .align.align-center i {
    transform: rotate(90deg);

    &:after {
      transform: rotate(90deg) translate(0, 60%);
    }
  }

  .align.align-middle i {
    transform: rotate(0deg);

    &:after {
      transform: rotate(90deg) translate(0, 60%);
    }
  }
}

.process-designer__logo {
  padding: 5px 0px;
  height: 40px;
  float: left;

  .img {
    width: 30px;
    height: 30px;
    vertical-align: top;
  }
}

.process-designer__tool {
  text-align: center;
}

.process-designer__container {
  border: 1px solid #cccccc;
}

.process-designer__left {
  border-left: 1px solid #cccccc;
  background-color: #f0f2f5;
}

.process-designer__center {
  padding: 0px;
  position: relative;
  display: flex;

  .process-designer__canvas {
    flex: 1;
    height: calc(100vh - 52px);
    position: relative;
    margin: 5px;
    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    background: url("") repeat !important;

    .djs-context-pad {
      &.open {
        color: #183eff;
      }
    }

    div.toggle-mode {
      display: none;
    }

    .djs-palette {
      top: 50px;
    }

    .djs-minimap {
      position: absolute;
      top: 50px;
      right: 15px;
      overflow: hidden;
      background-color: rgba(255, 255, 255, 0.9);
      border: solid 1px #ccc;
      border-radius: 2px;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      -webkit-user-select: none;
      cursor: pointer;
    }

    .djs-minimap .map {
      width: 200px;
      height: 120px;
    }

    .djs-minimap:not(.open) .toggle {
      width: 48px;
      height: 48px;
      line-height: 48px;
      text-align: center;
      background: url("") 0 0 no-repeat;
    }

    .djs-minimap.open .toggle:before {
      content: "关闭";
    }

    .djs-minimap:not(.open) .toggle:before {
      content: "";
    }

    .bjsl-button {
      top: 2px;
      height: 30px;
    }

    .bjsl-button-error {
      background-color: #cc3300;
    }

    .bjs-powered-by {
      /*display: none;可隐藏BPMN.IO链接*/
    }
  }
}

.process-designer__right {
  border-left: 1px solid #cccccc;
  background-color: #f0f2f5;

  .panel-title {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: bold;
    padding-left: 10px;
    border-bottom: 1px solid #cccccc;

    .node-name {
      display: inline-block;
      text-align: center;
    }

    .panel-fold {
      width: 70px;
      right: 0px;
      position: absolute;
      text-align: center;
      display: inline-block;

      i {
        font-size: 1.2em;
      }
    }
  }
}

.process-designer__preview {
  .el-dialog__body {
    padding: 16px;
    max-height: 70vh;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

pre {
  margin: 0;
  height: 100%;
  overflow: hidden;
  max-height: calc(70vh - 50px);
  overflow-y: auto;
}

.hljs {
  word-break: break-word;
  white-space: pre-wrap;
  max-height: calc(70vh - 50px);
}

.hljs * {
  font-family: Consolas, Monaco, monospace;
}
